import http from '@/common/http.js'

export default {
	// 收藏/取消收藏
	itineraryCollection: (data) => {
		return http.post({
			url: 'itinerary/collection',
			data
		})
	},
	// 获取行程同行人员
	driverTxry: (data) => {
		return http.get({
			url: 'driver/txry',
			data
		})
	},
	// 开始形行程
	driverksxc: (data) => {
		return http.post({
			url: 'driver/ksxc',
			data
		})
	},
	// 结束行程
	driverjsxc: (data) => {
		return http.post({
			url: 'driver/jsxc',
			data
		})
	},
	// 车主取消行程
	driverqxxc: (data) => {
		return http.post({
			url: 'driver/qxxc',
			data
		})
	},
	// 支付赔偿金
	compensationPayment: (data) => {
		return http.post({
			url: 'compensation/payment',
			data
		})
	},
	// 用户取消行程
	itinerarysc: (data) => {
		return http.post({
			url: 'itinerary/sc',
			data
		})
	},
}
